using System.Collections;
using System.Collections.Generic;
using DG.Tweening;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;

public class ClickTools : MonoBehaviour, IPointerDownHandler,IPointerUpHandler
{
    Button button;
    [SerializeField]
    float defaultScale = 1;
    float scaleTime = 0.1f;

    public void OnPointerDown(PointerEventData eventData)
    {
        transform.DOScale(defaultScale*0.95f, scaleTime).SetUpdate(true);
    }

    public void OnPointerUp(PointerEventData eventData)
    {
        transform.DOScale(defaultScale, scaleTime).SetUpdate(true);
    }
}
